<ui:composition xmlns="http://www.w3.org/1999/xhtml"
                xmlns:ui="http://java.sun.com/jsf/facelets"
                xmlns:h="http://java.sun.com/jsf/html"
                xmlns:f="http://java.sun.com/jsf/core"
                xmlns:p="http://primefaces.org/ui"
                >

    <f:subview id="pessoalSenhaEmbutido" rendered="#{fluxoExibicaoPessoal.exibirAlterarSenha}">
        <h:panelGrid columns="1" id="embPessSenha" width="850" styleClass="center">
            <h:form id="cadUserForm" styleClass="formularioFundo">
                <h:panelGrid columns="3" styleClass="bvb-font" id="gpai">
                    <f:facet name="header">
                        <h:outputText value="#{msg.cadUserAlterarSenha}" styleClass="formularioTitle"/>
                    </f:facet>
                    
                    <h:outputLabel value="#{msg.senhaAtual}:" id="labelsenhaAtual" title="#{msg.titleAlterarSenhaSenhaAtual}"/>
                    <p:password value="#{dadosPessoaisManager.senha}" id="userSenhaAtual" required="true"
                                 requiredMessage="#{msg.campoObrigatorio}" title="#{msg.titleAlterarSenhaSenhaAtual}" label="#{msg.senhaAtual}"
                                 maxlength="20" size="20" feedback="false">
                    </p:password>
                    <p:message for="userSenhaAtual"/>
                    
                    <h:outputLabel value="#{msg.senhaNova}:" id="labelsenhaNova" title="#{msg.titleAlterarSenhaNova}"/>
                    <p:password value="#{dadosPessoaisManager.senhaAtual}" id="usersenhaNova" required="true"
                                 requiredMessage="#{msg.campoObrigatorio}" title="#{msg.titleAlterarSenhaNova}" label="#{msg.senhaNova}"
                                 maxlength="20" size="20" feedback="false">
                    </p:password>
                    <p:message for="usersenhaNova"/>
                    
                    <h:outputLabel value="#{msg.senhaNova2}:" id="labelsenhaNova2" title="#{msg.titleAlterarSenhaNova2}"/>
                    <p:password value="#{dadosPessoaisManager.senhaAtual2}" id="usersenhaNova2" required="true"
                                 requiredMessage="#{msg.campoObrigatorio}" title="#{msg.titleAlterarSenhaNova2}" label="#{msg.senhaNova2}"
                                 maxlength="20" size="20" feedback="false">
                    </p:password>
                    <p:message for="usersenhaNova2"/>
                    
                     <h:outputText value=""/>
                     <p:commandLink actionListener="#{dadosPessoaisManager.alterarSenha()}" update="conteudoCentralGroup,messages"
                                   title="#{msg.titleButtonSalvarCadUser3}" id="buttonSalvar" styleClass="ui-button_link">
                        <h:graphicImage library="img" name="bt_salvar.png"/>
                    </p:commandLink>
                     
                </h:panelGrid>
            </h:form>
        </h:panelGrid>

    </f:subview>
</ui:composition>
